package shuiyuqing.network.beans;


import java.io.Serializable;
import java.util.Calendar;


/**
 * @author cai
 * @date   2015-10-31
 * 主键类，StadiaCode和MeaTime联合主键
 */
//@Embeddable
public class StadiaCodeMeaTimePrimaryKey implements Serializable{
	private static final long serialVersionUID = -4168651147554660875L;
	private String stadiaCode = "";			//测站编码
	private Calendar meaTime;			//采集时间
	public String getStadiaCode() {
		return stadiaCode;
	}
	public void setStadiaCode(String stadiaCode) {
		this.stadiaCode = stadiaCode;
	}
	public Calendar getMeaTime() {
		return meaTime;
	}
	public void setMeaTime(Calendar meaTime) {
		this.meaTime = meaTime;
	}
//	@Override  
//    public boolean equals(Object o) {  
//        if(o instanceof StadiaCodeMeaTimePrimaryKey){  
//        	StadiaCodeMeaTimePrimaryKey key = (StadiaCodeMeaTimePrimaryKey)o ;  
//            if(this.stadiaCode == key.getStadiaCode() && this.meaTime.equals(key.getMeaTime())){  
//                return true ;  
//            }  
//        }  
//        return false ;  
//    }  
//	@Override
//	public int hashCode() {
//		return this.stadiaCode.hashCode();
//	}
}
